package com.platform.service.impl;

import com.platform.dao.FunctionDao;
import com.platform.domain.TbSysFunction;
import com.platform.service.FunctionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: wangyanginfo
 * Date: 12-9-6
 * Time: 下午6:06
 * To change this template use File | Settings | File Templates.
 */
@Service("functionService")
public class FunctionServiceImpl implements FunctionService {

    @Resource
    private FunctionDao functionDao;
    /**
     * 根据角色ID查询符合条件的功能菜单信息集合
     *
     * @param params 查询参数
     * @return 功能菜单信息集合
     * @throws Exception
     */
    @Override
    public List<TbSysFunction> queryFunctionByRoleId(Map<String,String> params) throws Exception {
        return functionDao.queryFunctionByRoleId(params);
    }
}
